package com.developer.platform.infrastructure.error;

import com.veeker.core.enums.ErrorType;

/**
 * @author ：qiaoliang
 * @date ：2020-10-14
 */
public enum SecurityErrorType implements ErrorType {
    NO_ACCESS_ERROR(403,"登录失效，请重新登录！"),
    PERMISSION_DENIED_ERROR(401,"权限不足，无法访问！");

    private final int status;

    private final String message;

    SecurityErrorType(int status, String message) {
        this.status = status;
        this.message = message;
    }

    @Override
    public int getStatus() {
        return status;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
